//
//  queue.swift
//  heap
//
//  Created by lhc on 2024/8/9.
//

import Foundation

protocol Queue {
    associatedtype E: Comparable
    func getSize() -> Int
    func isEmpty() -> Bool
    func enqueue(e: E)
    func dequeue() -> E?
    func getFront() -> E?
}
